package com.szq.pattern.po;

/**
 * @description:
 * @author: szq
 * @date: 2021-09-09 16:57:19
 */
public class Stock {

    private int total; // 库存总量
    private int used;  // 库存已用

    public Stock(int total, int used) {
        this.total = total;
        this.used = used;
    }

    @Override
    public String toString() {
        return "Stock{" +
                "total=" + total +
                ", used=" + used +
                '}';
    }

    public int getTotal() {
        return total;
    }

    public void setTotal(int total) {
        this.total = total;
    }

    public int getUsed() {
        return used;
    }

    public void setUsed(int used) {
        this.used = used;
    }
}
